package com.taxsystem.gaozhuanglin.booking;


import com.main.taxsystem.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.widget.Button;
import android.widget.ImageView;

public class BookingShow extends Activity {
	
	ImageView iv;
	Boolean alertFlag = false;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.bookingmessage);
		
		iv = (ImageView)findViewById(R.id.sw);
		iv.setOnTouchListener(new OnTouchListener()
		{

			@Override
			public boolean onTouch(View v, MotionEvent event) {
				// TODO Auto-generated method stub
				if(!alertFlag)
				{
					alertFlag = true;
				}
				else
				{
					alertFlag = false;
				}
				
				if(alertFlag)
				{
					iv.setImageResource(R.drawable.open);
				}
				else
				{
					iv.setImageResource(R.drawable.close);
				}
				
				return false;
			}
		});
	
	}

}
